package com.xfxz.merchant.presenter;


import com.xfxz.merchant.model.Model;
import com.xfxz.merchant.model.ModelImpl;
import com.xfxz.merchant.view.MainView;

/**
* Created by King on 2017/02/10
*/

public class PresenterImpl implements Presenter{
    private Model mModel;
    private MainView mMainView;

    public PresenterImpl(MainView mainView) {
        mModel = new ModelImpl();
        mMainView = mainView;
    }

    @Override
    public void analyData(String json, Class cla) {
        mModel.analyData(json,cla.getClass());
    }

    @Override
    public void setData() {
        mMainView.setData(mModel.getData());
    }
}